set more off

use "dataset_nashville panel", clear

local X white female democrat homeowner college age
  

keep if v10 == "1" 

eststo clear

foreach x in votebarry1 knowbarrymorelib1 ideoself1 `X' {

	eststo: reg `x' dropout, robust
	
}

label variable dropout "Attritted"
label variable votebarry1 "Barry Voter"
label variable knowbarrymorelib1 "Knowledge"

#delimit;

esttab
	using "table A2 a.tex"
	, 
		booktabs
		width(\linewidth)
		replace
		se 
		compress 
		cells(b(fmt(3) star) se(par))
		collabels(none)
		label
	;
	
#delimit cr

